import deepl

def translate(text):
    auth_key = "f816f6f2-bf8e-26e9-f76f-7c2c6bf8b32a:fx"  # Replace with your key
    translator = deepl.Translator(auth_key)
    result = translator.translate_text(text, target_lang="ZH",source_lang="JA")
    return result.text  # "Bonjour, le monde !"